package com.vigor.bear.web.service.impl;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vigor.bear.web.bean.Info;
import com.vigor.bear.web.dao.InfoMapper;
import com.vigor.bear.web.service.InfoService;

/**
 * 资料管理业务实现
 * @author Alan
 *
 */
@Service
public class InfoServiceImpl implements InfoService {
	
	@Autowired
    private InfoMapper infoMapper;

	@Override
	public int create(Info info) {
		return infoMapper.create(info);
	}

	@Override
	public int delete(int iId) {
		return infoMapper.delete(iId);
	}

	@Override
	public int deleteSelect(String[] iIds) {
		return infoMapper.deleteSelect(iIds);
	}

	@Override
	public List<Info> search(RowBounds pagination, Info info) {
		return infoMapper.search(pagination, info);
	}

}
